package course.dmsSpringBoot.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * @author zouran
 * createDate：2023/12/8  20:55
 */


@Configuration
@ConditionalOnProperty(
        name = "your.config.enabled",
        havingValue = "true",
        matchIfMissing = true // 如果属性缺失，则默认为true
)
public class Satoken {
    public Satoken() {
        System.out.println("hello");
    }
    // ... your bean definitions and other configurations ...
}
